<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/3/29
  Time: 15:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>EL表达式</title>
</head>
<body>
<%
    // 在request中缓存一个值
    request.setAttribute("stuName", "小明");
    // 取出缓存的值
    out.write("request中缓存的值：" + request.getAttribute("stuName"));
%>
<%-- forward 标签是从一个页面跳转到另外一个页面，类似于点击了一个超链接，
forward前后的页面是同一个request请求，也是同一个session --%>
<jsp:forward page="index_el_sub.jsp"></jsp:forward>
</body>
</html>
